import demo.spring.ioc.MyService

beans {
    datasource(BasicDataSource) {
        driverClassName = "org.hsqldb.jdbcDriver"
        url = "jdbc:hsqldb:mem:grailsDB"
        username = "sa"
        password = ""
        settings = [mynew: "setting"]
    }

    sessionFactory(SessionFactory) {
        dataSource = dataSource
    }
    myService(MyService) {
//        nestedBean = { AnotherBean bean ->
//            dataSource = dataSource
//        }
    }
}